cmake_minimum_required(VERSION 3.15)

project(rdp-demo)

find_package(PkgConfig REQUIRED)

pkg_check_modules(RDP REQUIRED IMPORTED_TARGET freerdp3)
if (RDP_FOUND)
    include_directories(${RDP_INCLUDE_DIRS})
else()
    message(FATAL_ERROR "RDP not found")
endif()

add_executable(${PROJECT_NAME}
    main.cpp
)

target_link_libraries(${PROJECT_NAME}
    PkgConfig::RDP
    winpr3
)